package top.z.work.framework.common.constant;

/**
 * 数据类型枚举
 */
public enum DataType {

    BUILTIN(1, "内置"),
    CUSTOM(2, "自定义");

    // 状态值
    private final Integer code;
    // 状态名
    private final String  title;

    DataType(Integer code, String title) {
        this.code = code;
        this.title = title;
    }

    public Integer code() {
        return code;
    }

    public String title() {
        return title;
    }

    public boolean eq(Integer code) {
        return this.code.equals(code);
    }
}
